Skip to main content

Facebook

Facebook is the world's most popular social networking site. Users can create profiles, connect with friends, and share photos and videos. ezto auth provides a fast and convenient way for users to log into your app with Facebook.

Prerequisites

Make sure to create a Facebook Developer account before you begin.

1 Go to Dashboard > Authentication > Social.

2 Click on + CREATE CONNECTION.

3 You will be redirected to the social connection providers page, where you can view all the available providers.

Social Connection

4 Click on Facebook.

5 You will be directed to the configuration page for the chosen social connection method.

Facebook

6 To enable Facebook login, you must first establish a project and client in the Facebook Developer Console.


  • Copy the redirect URL for the Facebook provider from the dashboard as the first step.

Redirect URL

  • Go to Facebook Developer Console and click on My Apps.

My Apps

  • Click on Create App.

Create App

  • You will be taken to the Add use case page, select the use case from the available options, click on Next.

Add use case

  • You will be taken to the Type page, select the Type required from the available options, click on Next.

Type

  • Provide the specified details and click Create app.

Details

  • The application will be created and you will directed to the application's dashboard.

  • Scroll down, click on Set up for Facebook login.

Facebook login

  • Click on Web.

Web

  • Provide your Site URL, click on Save.

Site URL

  • The Facebook app must be made public, To do so, click on App Review > Permissions and Features > For public_profile set access level as Advanced Access.

public_profile

  • From the left side menu, click on Facebook Login > Settings.

  • Locate the Valid OAuth Redirect URIs and the paste the copied Redirect URL from your dashboard.

Valid OAuth Redirect URIs

  • Click on Save changes.

  • Go to App settings and click on Basics, copy the generated App ID and App Secret.

App ID & Secret


7 Return to your dashboard, paste the App ID and App Secret.

App ID & Secret

8 Configure the other required specification, click on SAVE.

note

By default, the dashboard sends a profile request to graph.facebook.com/me

  1. Fields = id, name, email,first name, last name, and the answer only includes the fields requested.

  2. If you wish to get more fields from a Facebook profile (for example, birthdate), create a matching scope and provide the field name in the Additional user's profile fields configuration option field.

  3. The Facebook GraphQL API Explorer can help you figure out what field names are accessible and what scopes they belong to.

Know more

Create Social Connection

Application Details

Application Execution

Attach Social Connection to Application